(ns clj-gae-blank.core
  (:use
   compojure.core
   ring.middleware.reload
   ring.middleware.stacktrace
   ring.util.servlet
   clj-gae-blank.middleware)
  (:require
   [compojure.route :as route])
  (:gen-class :extends javax.servlet.http.HttpServlet))

(defroutes handler
  (GET "/" [] (apply str
                     "<h1>Google App Engine Blank Project</h1>"
                     "<p>これはClojureで作られています。</p>"))
  (route/not-found "Page not found"))

(def app
     (-> handler
         (wrap-charset "utf-8")
         (wrap-reload '[clj-gae-blank.core])
         (wrap-stacktrace)))

(defservice app)
